import request from "@/utils/request";

//判断是否已经被注册
export function isRegister(data) {
  return request({
    url: "/system/loginAndRegister/isRegister",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

// 注册方法
export function register(data) {
  return request({
    url: "/system/loginAndRegister/register",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

//获取手机验证码
export function getCode(data) {
  return request({
    url: "/system/loginAndRegister/getCode",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

export function getCodeIs(data) {
  return request({
    url: "/system/loginAndRegister/emailCodeIsCorrect",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}
